<%-- 
    Document   : AgregarCodigo
    Created on : 26/08/2011, 06:43:11 PM
    Author     : Manuel Lap
--%>

<%@page import="java.io.BufferedReader"%>
<%@page import="java.io.FileReader"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    </head>
    <body>
        <script type="text/javascript">
            $(function(){

                $("#confirm").click(function(){
                    $.post("CodigoGuardarControler",{codeContainer: $("#codeContainer").val()},function(contenido){
                        alert("Guardaro con exito");
                    });
                });
            });
            
        </script>
        <fieldset style="width: 550px; text-align: center; margin-left: auto; margin-right: auto; margin-top: 3%">
              
            <legend><h3>Agregar c&oacute;digo</h3></legend>
                <center>
                    <form>
                        <div style="margin-top: 5%">
                            <table>
                                <tr>
                                    <td><center><textarea name ="codeContainer" id="codeContainer" cols="40" rows="20"></textarea></center></td>
                                </tr>
                                <tr>
                                    <td><center><input type="button" id="confirm" value="Confirmar" /></center></td>
                                </tr>
                            </table>
                        </div>
                    </form>
                </center>
            </fieldset>
    </body>
</html>
